Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[0.30.0] - 2024-09-23
SymbolFlags::ArrowFunction
(refactor(syntax)!: removeSymbolFlags::ArrowFunction
#5857) (overlookmotel)Features
#[non_exhaustive]
change (feat(ast): revert#[non_exhaustive]
change #5885) (Boshen)Comment::real_span
(feat(ast): addComment::real_span
#5764) (Boshen)TSTypeParameterDeclaration
(feat(codegen): add new lines toTSTypeParameterDeclaration
#5853) (Boshen)with_source_text
reserve memory for code buffer (feat(codegen): havewith_source_text
reserve memory for code buffer #5823) (DonIsaac)export
in thenamespace
correctly (feat(isolated-declarations): handleexport
in thenamespace
correctly #5950) (Dunqing)stripInternal
(feat(isolated_declarations): addstripInternal
#5878) (Boshen)typescript/no-duplicate-enum-values
acorrectness
rule (feat(linter): maketypescript/no-duplicate-enum-values
acorrectness
rule #5810) (DonIsaac)StatementFusion
(feat(minifier): implement part ofStatementFusion
#5936) (Boshen)verbse
option todebug_dot
(feat(oxc_wasm): addverbse
option todebug_dot
#5879) (IWANABETHATGUY)let x?: number
(feat(semantic): add help message for invalidlet x?: number
#5969) (DonIsaac)SemanticBuilder::with_excess_capacity
(feat(semantic): addSemanticBuilder::with_excess_capacity
#5762) (overlookmotel)From<Atom<'a>>
forAtom
(feat(span): implFrom<Atom<'a>>
forAtom
#5809) (DonIsaac)Program::source_type
after transform (feat(transformer): syncProgram::source_type
after transform #5887) (Boshen)generate_uid_name
method (feat(traverse):generate_uid_name
method #5839) (overlookmotel)Bug Fixes
JSXMemberExpressionObject
to estree (fix(ast): serializeJSXMemberExpressionObject
to estree #5883) (overlookmotel)JSXElementName
to estree (fix(ast): serializeJSXElementName
to estree #5882) (Boshen)let[0]
as(let)[0]
(fix(codegen): printlet[0]
as(let)[0]
#5947) (Boshen)for await (x of y)
(fix(codegen): fix spacing offor await (x of y)
#5890) (Boshen)TSUnionType
(fix(isolated-declarations): wrap TSFunctionType in parentheses if it is inside theTSUnionType
#5963) (Dunqing)ExportNamedDeclaration
has source (fix(isolated-declarations): don't collect references whenExportNamedDeclaration
has source #5926) (Dunqing)?
on variable declaration type annotations is a syntax error (fix(semantic):?
on variable declaration type annotations is a syntax error #5956) (DonIsaac)ReferenceFlags
incorrectly when there are nestedAssignmentTarget
(fix(semantic): analyzeReferenceFlags
incorrectly when there are nestedAssignmentTarget
#5847) (Dunqing)var _jsxFileName
statement (fix(transformer): JSX source: addvar _jsxFileName
statement #5894) (overlookmotel)this
in arrow function in class static block (fix(transformer): arrow function transform handlethis
in arrow function in class static block #5848) (overlookmotel)AstBuilder::copy
from arrow functions transform (fix(transformer): removeAstBuilder::copy
from arrow functions transform #5825) (overlookmotel)use
hook (fix(transformer/react): react refresh panics when encounteruse
hook #5768) (Dunqing)Performance
sort_unstable_by_key
instead ofsort_by
(perf(mangler): usesort_unstable_by_key
instead ofsort_by
#5948) (Boshen)AssignmentExpression
(perf(semantic): simplify resetting ReferenceFlags inAssignmentExpression
#5846) (Dunqing)this
is in arrow function lazily (perf(transformer): arrow function transform: calculate whetherthis
is in arrow function lazily #5850) (Dunqing)transform_jsx
inexit_expression
rather thanenter_expression
(perf(transformer): calltransform_jsx
inexit_expression
rather thanenter_expression
#5751) (Dunqing)is_componentish_name
's implementation (perf(transformer/react): improveis_componentish_name
's implementation #5769) (Dunqing)Documentation
oxc_diagnostics
(docs(diagnostics): fully documentoxc_diagnostics
#5865) (DonIsaac)AstNode
andAstNodes
(docs(semantic): documentAstNode
andAstNodes
#5872) (DonIsaac)Refactor
.iter()
where not needed (refactor(ast): remove.iter()
where not needed #5904) (camchenry)ast
macro (refactor(ast): move functions to top level inast
macro #5793) (overlookmotel)syn
types inast
macro (refactor(ast): importsyn
types inast
macro #5792) (overlookmotel)ast
macro into multiple files (refactor(ast): splitast
macro into multiple files #5791) (overlookmotel)Comment
struct (refactor(ast): changeComment
struct #5783) (Boshen)GetSpan
requirement toGen
trait (refactor(codegen): addGetSpan
requirement toGen
trait #5772) (Boshen)UniquePromise
code (refactor(parser): shortenUniquePromise
code #5805) (overlookmotel)--ast
and--comments
to example (Boshen)impl IntoIterator for &AstNodes
(refactor(semantic): rename lifetime onimpl IntoIterator for &AstNodes
#5881) (overlookmotel)Comment::attached_to
for jsdoc attachment (refactor(semantic): useComment::attached_to
for jsdoc attachment #5876) (Boshen)with_trivias
beforebuild_with_jsdoc
(refactor(semantic): callwith_trivias
beforebuild_with_jsdoc
#5875) (Boshen)IntoIterator
for&AstNodes
(refactor(semantic): implIntoIterator
for&AstNodes
#5873) (DonIsaac)pub
in logical assignment operator transform (refactor(transformer): internal functions notpub
in logical assignment operator transform #5898) (overlookmotel)AstBuilder::vec_from_iter
(refactor(transformer): JSX: useAstBuilder::vec_from_iter
#5862) (overlookmotel)transform_jsx_attribute_item
intotransform_jsx
(refactor(transformer): JSX: mergetransform_jsx_attribute_item
intotransform_jsx
#5861) (overlookmotel)SymbolId
immediately (refactor(transformer): derefSymbolId
immediately #5836) (overlookmotel)Testing
oxc_index
(test(index): add unit tests tooxc_index
#5979) (DonIsaac)